﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kiel.Pdf
{
	/// <summary>
	/// Creates a referece to a PDF Indirect Object.
	/// </summary>
	class PdfIndirectObjectReference : IPdfObject
	{
		public PdfIndirectObjectReference(int objectNumber, int generationNumber)
		{
			this.ObjectNumber = objectNumber;
			this.GenerationNumber = generationNumber;
		}

		public int GenerationNumber { get; private set; }

		public int ObjectNumber { get; private set; }

		public override string ToString()
		{
			return string.Format("{0} {1} R", this.ObjectNumber, this.GenerationNumber);
		}
	}
}
